package com.aspose.cells;

public class Style {
   zakp a;
   zakp b;
   private String d;
   private int e = 0;
   private BorderCollection f;
   private int g = 0;
   private byte h = -1;
   private long i;
   private byte j;
   private int k = -1;
   private Font l;
   private WorksheetCollection m;
   private int n;
   private byte o;
   private String p = "";
   private short q = 18;
   byte c = 0;

   public ThemeColor getBackgroundThemeColor() {
      if (this.a.b() == 4) {
         int var1 = zsk.c(this.a.d());
         return new ThemeColor(var1, this.a.f());
      } else {
         return null;
      }
   }

   public void setBackgroundThemeColor(ThemeColor value) {
      this.a.a(4, zsk.d(value.getColorType()));
      this.a.a(value.getTint());
      this.b(35);
   }

   int a() {
      switch(this.e) {
      case 0:
         return 65;
      case 1:
         return 64;
      default:
         return this.a((zakp)this.a, (int)65);
      }
   }

   public ThemeColor getForegroundThemeColor() {
      if (this.b.b() == 4) {
         int var1 = zsk.c(this.b.d());
         return new ThemeColor(var1, this.b.f());
      } else {
         return null;
      }
   }

   public void setForegroundThemeColor(ThemeColor value) {
      this.b.a(4, zsk.d(value.getColorType()));
      this.b.a(value.getTint());
      this.b(34);
   }

   int b() {
      if (this.e == 0) {
         return 64;
      } else {
         return this.e == 1 ? this.a((zakp)this.b, (int)65) : this.a((zakp)this.b, (int)64);
      }
   }

   public String getName() {
      return this.d;
   }

   public void setName(String value) {
      this.d = value;
      if (value != null && !"".equals(value)) {
         this.a(false);
         this.m.B().h(this);
         this.m.r().a(this, true);
      }

   }

   String c() {
      return this.d;
   }

   void a(String var1) {
      this.d = var1;
   }

   public int getPattern() {
      return this.e;
   }

   public void setPattern(int value) {
      this.e = value;
      this.g(true);
      this.i |= 524288L;
   }

   BorderCollection d() {
      return this.f;
   }

   public BorderCollection getBorders() {
      if (this.f == null) {
         this.f = new BorderCollection(this);
      }

      return this.f;
   }

   public Style() {
      this.m = null;
      this.e = 0;
      this.b = new zakp(false);
      this.a = new zakp(false);
      this.a.a(true);
      this.b.a(true);
      this.o = 8;
   }

   Style(WorksheetCollection sheets) {
      this.m = sheets;
      this.e = 0;
      this.b = new zakp(false);
      this.a = new zakp(false);
      this.a.a(true);
      this.b.a(true);
      this.o = 8;
   }

   WorksheetCollection e() {
      return this.m;
   }

   void a(WorksheetCollection var1) {
      this.m = var1;
      if (this.l != null) {
         this.l.c = this.m;
      }

   }

   public Color getBackgroundColor() {
      if (this.a.a()) {
         if (this.e == 0) {
            return Color.getEmpty();
         } else {
            return this.e == 1 ? Color.getWhite() : Color.getBlack();
         }
      } else {
         return this.a.b(this.m.n());
      }
   }

   public void setBackgroundColor(Color value) {
      if (value.isEmpty()) {
         this.g(true);
         this.a.a(true);
      } else {
         this.a.a(2, value.toArgb());
         this.a.e();
         this.g(true);
      }

      this.i |= 4096L;
   }

   public int getBackgroundArgbColor() {
      return this.getBackgroundColor().toArgb();
   }

   public void setBackgroundArgbColor(int value) {
      this.setBackgroundColor(Color.fromArgb(value));
   }

   public Color getForegroundColor() {
      return this.b.a() ? Color.getEmpty() : this.b.b(this.m.n());
   }

   public void setForegroundColor(Color value) {
      if (value.isEmpty()) {
         this.b.a(true);
         this.b.e();
      } else {
         this.b.a(2, value.toArgb());
         this.b.e();
      }

      this.i |= 8192L;
      this.g(true);
   }

   public int getForegroundArgbColor() {
      return this.getForegroundColor().toArgb();
   }

   public void setForegroundArgbColor(int value) {
      this.setForegroundColor(Color.fromArgb(value));
   }

   int a(zakp var1, int var2) {
      boolean var3 = false;
      boolean[] var4 = new boolean[]{var3};
      int var5 = this.a(var1, var2, var4);
      var3 = var4[0];
      return var5;
   }

   int a(zakp var1, int var2, boolean[] var3) {
      return var1.a(this.m, var2, var3);
   }

   public void copy(Style style) {
      if (this.m == null) {
         this.m = style.m;
      }

      this.i = style.i;
      this.h = style.h;
      if (style.l != null) {
         if (this.l == null) {
            this.l = new Font(this.m, this, false);
         }

         this.l.c(style.l);
      }

      this.q = style.q;
      this.k = style.k;
      this.n = style.n;
      this.o = style.o;
      this.p = style.p;
      this.j = style.j;
      this.e = style.e;
      if (style.a.b() == 3 && style.m != this.m) {
         this.a.a(2, style.a.c(style.m.n()));
      } else {
         this.a.f(style.a);
      }

      if (style.b.b() == 3 && style.m != this.m) {
         this.b.a(2, style.b.c(style.m.n()));
      } else {
         this.b.f(style.b);
      }

      this.c = style.c;
      if (style.f()) {
         this.f = new BorderCollection(this);
         this.f.a(style.getBorders());
      }

      if (style.m == this.m) {
         this.g = style.g;
      }

   }

   boolean f() {
      return this.f != null && this.f.d();
   }

   boolean g() {
      return (this.q & 16) != 0;
   }

   void a(boolean var1) {
      if (var1) {
         this.q = (short)(this.q | 16);
         this.g = 0;
      } else {
         this.q = (short)(this.q & -17);
      }

   }

   void b(boolean var1) {
      if (var1) {
         this.q = (short)(this.q | 16);
      } else {
         this.q = (short)(this.q & -17);
      }

   }

   int h() {
      return this.g;
   }

   void a(int var1) {
      this.g = var1;
   }

   public Style getParentStyle() {
      return this.g > 0 && this.g < this.m.B().getCount() ? this.e().B().a(this.g) : null;
   }

   void a(WorksheetCollection var1, int var2) {
      Style var3 = null;
      if (var2 >= 0 && var2 <= var1.B().getCount()) {
         var3 = var1.B().a(var2);
      } else {
         var3 = var1.B().a(15);
      }

      this.copy(var3);
   }

   public void update() {
      if (this.d != null && !"".equals(this.d)) {
         if ("Normal".equals(this.d)) {
            this.m.z().set(0, this.getFont());
            this.m.K();
         }

         zbvx var1 = this.m.B();
         boolean var2 = false;
         boolean var3 = false;

         int var6;
         for(var6 = 0; var6 < var1.getCount(); ++var6) {
            Style var4 = var1.a(var6);
            if (var4 != null && (var4 == this || com.aspose.cells.b.a.zv.b(var4.getName(), this.getName()))) {
               if (var4 != this) {
                  var1.a(var6, this);
               }

               var2 = true;
               break;
            }
         }

         if (!var2) {
            this.a(false);
            var1.f(this);
         } else {
            int var7 = var6;

            for(var6 = var1.getCount() - 1; var6 > var7; --var6) {
               Style var5 = var1.a(var6);
               if (var5 != null && var5.h() == var7) {
                  this.a(var5);
               }
            }
         }

      }
   }

   void a(Style var1) {
      if (this.j() && !var1.j()) {
         var1.k = this.k;
         var1.p = this.p;
         if ((this.q & 128) != 0) {
            var1.q = (short)(var1.q | 128);
         } else {
            var1.q &= -129;
         }
      }

      if (this.k() && !var1.k()) {
         var1.getFont().c(this.getFont());
      }

      if (this.l() && !var1.l()) {
         var1.o = this.o;
         var1.n = this.n;
         var1.j = this.j;
         var1.q = (short)(var1.q & -13);
         var1.q |= (short)(this.q & 12);
         var1.setJustifyDistributed(this.isJustifyDistributed());
      }

      if (this.m() && !var1.m()) {
         var1.getBorders().a(this.getBorders());
      }

      if (this.n() && !var1.n()) {
         var1.e = this.e;
         var1.b.f(this.b);
         var1.a.f(this.a);
      }

      if (this.o() && !var1.o()) {
         var1.q = (short)(var1.q & -4);
         var1.q |= (short)(this.q & 3);
      }

   }

   byte i() {
      return this.h;
   }

   void a(byte var1) {
      this.h = var1;
   }

   boolean j() {
      return (this.h & 255 & 4) != 0;
   }

   void c(boolean var1) {
      if (var1) {
         this.h = (byte)(this.h | 4);
      } else {
         this.h &= -5;
      }

   }

   boolean k() {
      return (this.h & 255 & 8) != 0;
   }

   void d(boolean var1) {
      if (var1) {
         this.h = (byte)(this.h | 8);
      } else {
         this.h &= -9;
      }

   }

   boolean l() {
      return (this.h & 255 & 16) != 0;
   }

   void e(boolean var1) {
      if (var1) {
         this.h = (byte)(this.h | 16);
      } else {
         this.h &= -17;
      }

   }

   boolean m() {
      return (this.h & 255 & 32) != 0;
   }

   void f(boolean var1) {
      if (var1) {
         this.h = (byte)(this.h | 32);
      } else {
         this.h &= -33;
      }

   }

   boolean n() {
      return (this.h & 255 & 64) != 0;
   }

   void g(boolean var1) {
      if (var1) {
         this.h = (byte)(this.h | 64);
      } else {
         this.h &= -65;
      }

   }

   boolean o() {
      return (this.h & 255 & 128) != 0;
   }

   void h(boolean var1) {
      if (var1) {
         this.h = (byte)(this.h | 128);
      } else {
         this.h = (byte)(this.h & 127);
      }

   }

   void a(byte[] var1) {
      int var2 = com.aspose.cells.b.a.zc.e(var1, 0);
      if ((var2 & '\uffff') > 4) {
         --var2;
      }

      if ((var2 & '\uffff') >= this.m.z().size()) {
         var2 = 0;
      }

      this.getFont().c((Font)this.m.z().get(var2 & '\uffff'));
      int var3 = com.aspose.cells.b.a.zc.e(var1, 2);

      int var4;
      for(var4 = 0; var4 < this.m.A().size(); ++var4) {
         zxw var5 = (zxw)this.m.A().get(var4);
         if (var5.b() == (var3 & '\uffff')) {
            if (var5.a() != null && !"".equals(var5.a())) {
               this.p = var5.a();
               if (this.b(this.p)) {
                  this.q = (short)(this.q | 128);
               } else {
                  this.q &= -129;
               }
            } else {
               this.p = "";
               this.q &= -129;
            }
         }
      }

      this.k = var3 & '\uffff';
      var4 = var1[4] & 255 & 1;
      if (var4 == 0) {
         this.setLocked(false);
      } else {
         this.setLocked(true);
      }

      var4 = var1[4] & 255 & 2;
      if (var4 == 0) {
         this.setFormulaHidden(false);
      } else {
         this.setFormulaHidden(true);
      }

      if ((var1[4] & 255 & 8) != 0) {
         this.i(true);
      }

      var4 = var1[6] & 255 & 7;
      boolean var10 = false;
      this.o = 0;
      this.o |= (byte)var4;
      if (this.getHorizontalAlignment() != 5) {
         this.b(25);
         var10 = true;
      }

      if (this.getVerticalAlignment() != 0) {
         this.b(26);
         var10 = true;
      }

      var4 = var1[6] & 255 & 8;
      if (var4 == 0) {
         this.setTextWrapped(false);
      } else {
         this.setTextWrapped(true);
         var10 = true;
      }

      var4 = (var1[6] & 255 & 112) >> 4;
      this.o |= (byte)(var4 << 3);
      if ((var1[7] & 255) > 90 && (var1[7] & 255) != 255) {
         this.n = 90 - (var1[7] & 255);
      } else {
         this.n = var1[7] & 255;
      }

      this.j = (byte)(var1[8] & 255 & 15);
      var4 = var1[8] & 255 & 16;
      if (var4 == 0) {
         this.setShrinkToFit(false);
      } else {
         this.setShrinkToFit(true);
      }

      var4 = var1[8] & 255 & 192;
      this.o |= (byte)var4;
      var4 = var1[4] & 255 & 4;
      if (var4 == 0) {
         this.a(true);
      } else {
         this.a(false);
      }

      if (!this.g()) {
         this.g = 4095;
      } else if ((var1[5] & 255) == 255) {
         var4 = var1[4] & 255 & 240;
         if (var4 == 240) {
            this.g = 0;
         } else {
            this.g = ((var1[4] & 255 & 240) >> 4) + ((var1[5] & 255) << 4);
         }
      } else {
         this.g = ((var1[4] & 255 & 240) >> 4) + ((var1[5] & 255) << 4);
      }

      var4 = var1[10] & 255 & 15;
      this.a(var4, 1);
      var4 = (var1[10] & 255 & 240) >> 4;
      this.a(var4, 2);
      var4 = var1[11] & 255 & 15;
      this.a(var4, 4);
      var4 = (var1[11] & 255 & 240) >> 4;
      this.a(var4, 8);
      int var6 = var1[12] & 255 & 127;
      if (var6 >= 0 && var6 < 64) {
         this.getBorders().getByBorderType(1).a.a(3, var6);
      } else {
         this.getBorders().getByBorderType(1).a.a(1, var6);
      }

      var6 = ((var1[12] & 255 & 128) >> 7) + ((var1[13] & 255 & 63) << 1);
      if (var6 >= 0 && var6 < 64) {
         this.getBorders().getByBorderType(2).a.a(3, var6);
      } else {
         this.getBorders().getByBorderType(2).a.a(1, var6);
      }

      int var7 = (var1[13] & 255 & 192) >> 6;
      var6 = var1[14] & 255 & 127;
      if (var6 >= 0 && var6 < 64) {
         this.getBorders().getByBorderType(4).a.a(3, var6);
      } else {
         this.getBorders().getByBorderType(4).a.a(1, var6);
      }

      var6 = ((var1[14] & 255 & 128) >> 7) + ((var1[15] & 255 & 63) << 1);
      if (var6 >= 0 && var6 < 64) {
         this.getBorders().getByBorderType(8).a.a(3, var6);
      } else {
         this.getBorders().getByBorderType(8).a.a(1, var6);
      }

      var6 = ((var1[15] & 255 & 192) >> 6) + ((var1[16] & 255 & 31) << 2);
      zakp var8 = new zakp(false);
      if (var6 >= 0 && var6 < 64) {
         var8.a(3, var6);
      } else {
         var8.a(1, var6);
      }

      var4 = ((var1[16] & 255 & 224) >> 5) + ((var1[17] & 255 & 1) << 3);
      switch(var7) {
      case 1:
         this.getBorders().getByBorderType(16).a = var8;
         this.a(var4, 16);
         break;
      case 2:
         this.getBorders().getByBorderType(32).a = var8;
         this.a(var4, 32);
         break;
      case 3:
         this.getBorders().getByBorderType(16).a = var8;
         this.a(var4, 16);
         this.getBorders().getByBorderType(32).a = var8;
         this.a(var4, 32);
      }

      var4 = (var1[17] & 255 & 252) >> 2;
      this.e = var4;
      if (this.e == 0) {
         this.b.a(true);
         this.a.a(true);
      } else {
         var6 = var1[18] & 255 & 127;
         if (var6 >= 0 && var6 < 64) {
            this.b.a(3, var6);
         } else {
            this.b.a(true);
         }

         var6 = ((var1[18] & 255 & 128) >> 7) + ((var1[19] & 255 & 63) << 1);
         if (var6 >= 0 && var6 < 64) {
            this.a.a(3, var6);
         } else {
            this.a.a(true);
         }
      }

      if ((var1[19] & 255 & 64) != 0) {
         this.j(true);
      }

      if (this.g()) {
         this.h = var1[9];
         if (!this.l() && var10) {
            if (this.g > 0 && this.g < this.e().B().getCount()) {
               Style var9 = this.e().B().a(this.g);
               if (!var9.l()) {
                  this.e(true);
               }
            } else {
               this.e(true);
            }
         }
      } else {
         this.h = (byte)(~(var1[9] & 255) & 252);
      }

   }

   private void a(int var1, int var2) {
      switch(var1) {
      case 1:
         this.getBorders().getByBorderType(var2).b(1);
         break;
      case 2:
         this.getBorders().getByBorderType(var2).b(2);
         break;
      case 3:
         this.getBorders().getByBorderType(var2).b(3);
         break;
      case 4:
         this.getBorders().getByBorderType(var2).b(4);
         break;
      case 5:
         this.getBorders().getByBorderType(var2).b(5);
         break;
      case 6:
         this.getBorders().getByBorderType(var2).b(6);
         break;
      case 7:
         this.getBorders().getByBorderType(var2).b(7);
         break;
      case 8:
         this.getBorders().getByBorderType(var2).b(8);
         break;
      case 9:
         this.getBorders().getByBorderType(var2).b(9);
         break;
      case 10:
         this.getBorders().getByBorderType(var2).b(10);
         break;
      case 11:
         this.getBorders().getByBorderType(var2).b(11);
         break;
      case 12:
         this.getBorders().getByBorderType(var2).b(12);
         break;
      case 13:
         this.getBorders().getByBorderType(var2).b(13);
         break;
      default:
         if (this.f != null) {
            this.f.getByBorderType(var2).b(0);
         }
      }

   }

   boolean b(Style var1) {
      Workbook var2 = this.m.n();
      Workbook var3 = var1.m.n();
      if (this.i != var1.i) {
         return false;
      } else if (this.q != var1.q) {
         return false;
      } else if (this.o != var1.o) {
         return false;
      } else if (this.j != var1.j) {
         return false;
      } else if (this.n != var1.n) {
         return false;
      } else if (this.c != var1.c) {
         return false;
      } else {
         if (this.isGradient()) {
            if (this.b.b(var1.b, this.m.n(), var1.m.n())) {
               return false;
            }

            if (this.a.b(var1.a, this.m.n(), var1.m.n())) {
               return false;
            }
         }

         if (this.n()) {
            if (this.isModified(33) && this.getPattern() != var1.getPattern()) {
               return false;
            }

            if (this.isModified(34) && this.b.b(var1.b, var2, var3)) {
               return false;
            }

            if (this.isModified(35) && this.a.b(var1.a, var2, var3)) {
               return false;
            }
         }

         if (this.k() && !this.getFont().a(var1.getFont(), this.m.n(), var1.m.n())) {
            return false;
         } else {
            if (this.isModified(24)) {
               if (this.p != null && !"".equals(this.p)) {
                  if (var1.p == null || !com.aspose.cells.b.a.zv.b(this.p, var1.p)) {
                     return false;
                  }
               } else if (var1.p != null && !"".equals(var1.p)) {
                  return false;
               }

               if ((this.p == null || "".equals(this.p)) && (var1.p == null || "".equals(var1.p))) {
                  if (this.k <= 0) {
                     if (var1.k > 0) {
                        return false;
                     }
                  } else if (this.k != var1.k) {
                     return false;
                  }
               }
            }

            if (this.m()) {
               if (this.isModified(2) && !this.getBorders().getByBorderType(1).a(var1.getBorders().getByBorderType(1), var2, var3)) {
                  return false;
               }

               if (this.isModified(3) && !this.getBorders().getByBorderType(2).a(var1.getBorders().getByBorderType(2), var2, var3)) {
                  return false;
               }

               if (this.isModified(4) && !this.getBorders().getByBorderType(4).a(var1.getBorders().getByBorderType(4), var2, var3)) {
                  return false;
               }

               if (this.isModified(5) && !this.getBorders().getByBorderType(8).a(var1.getBorders().getByBorderType(8), var2, var3)) {
                  return false;
               }

               if (this.isModified(9) && !this.getBorders().getByBorderType(16).a(var1.getBorders().getByBorderType(16), var2, var3)) {
                  return false;
               }

               if (this.isModified(10) && !this.getBorders().getByBorderType(32).a(var1.getBorders().getByBorderType(32), var2, var3)) {
                  return false;
               }

               if (this.isModified(6) && !this.getBorders().getByBorderType(128).a(var1.getBorders().getByBorderType(128), var2, var3)) {
                  return false;
               }

               if (this.isModified(7) && !this.getBorders().getByBorderType(64).a(var1.getBorders().getByBorderType(64), var2, var3)) {
                  return false;
               }
            }

            return true;
         }
      }
   }

   boolean c(Style var1) {
      if (this.h != var1.h) {
         return false;
      } else if (this.q != var1.q) {
         return false;
      } else if (this.o != var1.o) {
         return false;
      } else if (this.j != var1.j) {
         return false;
      } else if (this.n != var1.n) {
         return false;
      } else if (this.e != var1.e) {
         return false;
      } else if (this.c != var1.c) {
         return false;
      } else {
         if (this.isGradient()) {
            if (this.b.b(var1.b, this.m.n(), var1.m.n())) {
               return false;
            }

            if (this.a.b(var1.a, this.m.n(), var1.m.n())) {
               return false;
            }
         }

         switch(this.e) {
         case 0:
            break;
         case 1:
            if (this.b.b(var1.b, this.m.n(), var1.m.n())) {
               return false;
            }
            break;
         default:
            if (this.b.b(var1.b, this.m.n(), var1.m.n())) {
               return false;
            }

            if (this.a.b(var1.a, this.m.n(), var1.m.n())) {
               return false;
            }
         }

         if (this.l == null) {
            if (var1.l != null && !var1.l.a(this.m.G(), var1.m.n(), this.m.n())) {
               return false;
            }
         } else if (var1.l == null) {
            if (!this.l.a(this.m.G(), this.m.n(), var1.m.n())) {
               return false;
            }
         } else if (!this.l.a(var1.l, this.m.n(), var1.m.n())) {
            return false;
         }

         if (this.p != null && !"".equals(this.p)) {
            if (var1.p == null || !com.aspose.cells.b.a.zv.b(this.p, var1.p)) {
               return false;
            }
         } else if (var1.p != null && !"".equals(var1.p)) {
            return false;
         }

         if ((this.p == null || "".equals(this.p)) && (var1.p == null || "".equals(var1.p))) {
            if (this.k <= 0) {
               if (var1.k > 0) {
                  return false;
               }
            } else if (this.k != var1.k) {
               return false;
            }
         }

         if (var1.f == null) {
            if (this.f()) {
               return false;
            }
         } else if (this.f == null) {
            if (var1.f()) {
               return false;
            }
         } else if (!this.f.a(var1.f, this.m.n(), var1.m.n())) {
            return false;
         }

         return true;
      }
   }

   boolean a(Style var1, byte var2) {
      if (this.q != var1.q) {
         return false;
      } else if (this.o != var1.o) {
         return false;
      } else if (this.j != var1.j) {
         return false;
      } else if (this.n != var1.n) {
         return false;
      } else if (this.e != var1.e) {
         return false;
      } else if (this.c != var1.c) {
         return false;
      } else {
         switch(this.e) {
         case 0:
            break;
         case 1:
            if (this.b.b(var1.b, this.m.n(), var1.m.n())) {
               return false;
            }
            break;
         default:
            if (this.b.b(var1.b, this.m.n(), var1.m.n())) {
               return false;
            }

            if (this.a.b(var1.a, this.m.n(), var1.m.n())) {
               return false;
            }
         }

         if (this.l == null) {
            if (var1.l != null && !var1.l.a(this.m.G(), var1.m.n(), this.m.n())) {
               return false;
            }
         } else if (var1.l == null) {
            if (!this.l.a(this.m.G(), this.m.n(), var1.m.n())) {
               return false;
            }
         } else if (!this.l.a(var1.l, this.m.n(), var1.m.n())) {
            return false;
         }

         if (this.p != null && !"".equals(this.p)) {
            if (var1.p == null || !com.aspose.cells.b.a.zv.b(this.p, var1.p)) {
               return false;
            }
         } else if (var1.p != null && !"".equals(var1.p)) {
            return false;
         }

         if ((this.p == null || "".equals(this.p)) && (var1.p == null || "".equals(var1.p))) {
            if (this.k <= 0) {
               if (var1.k > 0) {
                  return false;
               }
            } else if (this.k != var1.k) {
               return false;
            }
         }

         if (var1.f == null) {
            if (this.f()) {
               return false;
            }
         } else if (this.f == null) {
            if (var1.f()) {
               return false;
            }
         } else if (!this.f.a(var1.f, this.m.n(), var1.m.n())) {
            return false;
         }

         return true;
      }
   }

   boolean d(Style var1) {
      if (this.q != var1.q) {
         return false;
      } else if (this.o != var1.o) {
         return false;
      } else if (this.j != var1.j) {
         return false;
      } else {
         if (this.l == null) {
            if (var1.l != null && var1.l.j() != 0) {
               return false;
            }
         } else if (var1.l == null) {
            if (this.l.j() != 0) {
               return false;
            }
         } else if (!this.l.a(var1.l)) {
            return false;
         }

         if (this.p != null && !"".equals(this.p)) {
            if (var1.p == null || !com.aspose.cells.b.a.zv.b(this.p, var1.p)) {
               return false;
            }
         } else if (var1.p != null && !"".equals(var1.p)) {
            return false;
         }

         if ((this.p == null || "".equals(this.p)) && (var1.p == null || "".equals(var1.p)) && this.k != var1.k) {
            return false;
         } else if (this.n != var1.n) {
            return false;
         } else if ((this.getBackgroundColor().toArgb() & 16777215) != (var1.getBackgroundColor().toArgb() & 16777215)) {
            return false;
         } else {
            if (var1.f == null) {
               if (this.f != null) {
                  return false;
               }
            } else {
               if (this.f == null) {
                  return false;
               }

               Border var2 = this.getBorders().getByBorderType(8);
               Border var3 = var1.getBorders().getByBorderType(8);
               if (!a(var2.getColor(), var3.getColor())) {
                  return false;
               }

               if (var2.getLineStyle() != var3.getLineStyle()) {
                  return false;
               }

               var2 = this.getBorders().getByBorderType(16);
               var3 = var1.getBorders().getByBorderType(16);
               if (!a(var2.getColor(), var3.getColor())) {
                  return false;
               }

               if (var2.getLineStyle() != var3.getLineStyle()) {
                  return false;
               }

               var2 = this.getBorders().getByBorderType(32);
               var3 = var1.getBorders().getByBorderType(32);
               if (!a(var2.getColor(), var3.getColor())) {
                  return false;
               }

               if (var2.getLineStyle() != var3.getLineStyle()) {
                  return false;
               }

               var2 = this.getBorders().getByBorderType(1);
               var3 = var1.getBorders().getByBorderType(1);
               if (!a(var2.getColor(), var3.getColor())) {
                  return false;
               }

               if (var2.getLineStyle() != var3.getLineStyle()) {
                  return false;
               }

               var2 = this.getBorders().getByBorderType(2);
               var3 = var1.getBorders().getByBorderType(2);
               if (!a(var2.getColor(), var3.getColor())) {
                  return false;
               }

               if (var2.getLineStyle() != var3.getLineStyle()) {
                  return false;
               }

               var2 = this.getBorders().getByBorderType(4);
               var3 = var1.getBorders().getByBorderType(4);
               if (!a(var2.getColor(), var3.getColor())) {
                  return false;
               }

               if (var2.getLineStyle() != var3.getLineStyle()) {
                  return false;
               }
            }

            if ((this.getForegroundColor().toArgb() & 16777215) != (var1.getForegroundColor().toArgb() & 16777215)) {
               return false;
            } else if (this.e != var1.e) {
               return false;
            } else {
               return true;
            }
         }
      }
   }

   private static boolean a(Color var0, Color var1) {
      if (!com.aspose.cells.a.c.zh.a(var0, var1)) {
         if (com.aspose.cells.a.c.zh.a(var0)) {
            if (!com.aspose.cells.a.c.zh.a(var1, Color.getBlack())) {
               return false;
            }
         } else {
            if (!com.aspose.cells.a.c.zh.a(var0, Color.getBlack())) {
               return false;
            }

            if (!com.aspose.cells.a.c.zh.a(var1)) {
               return false;
            }
         }
      }

      return true;
   }

   long p() {
      return this.i;
   }

   void a(long var1) {
      this.i = var1;
   }

   public boolean isModified(int modifyFlag) {
      switch(modifyFlag) {
      case 0:
         if ((this.i & 4294967295L) == 0L) {
            if (this.l == null) {
               return false;
            }

            return this.l.f(11);
         }

         return (this.i & 4294967295L) != 0L;
      case 1:
         return (this.i & 4294967295L & 4278190080L) != 0L;
      case 2:
         return (this.i & 4294967295L & 16777216L) != 0L;
      case 3:
         return (this.i & 4294967295L & 33554432L) != 0L;
      case 4:
         return (this.i & 4294967295L & 67108864L) != 0L;
      case 5:
         return (this.i & 4294967295L & 134217728L) != 0L;
      case 6:
         return (this.i & 4294967295L & 268435456L) != 0L;
      case 7:
         return (this.i & 4294967295L & 2147483648L) != 0L;
      case 8:
         return (this.i & 4294967295L & 1610612736L) != 0L;
      case 9:
         return (this.i & 4294967295L & 1073741824L) != 0L;
      case 10:
         return (this.i & 4294967295L & 536870912L) != 0L;
      case 11:
      case 12:
      case 13:
      case 14:
      case 15:
      case 16:
      case 17:
      case 18:
      case 19:
      case 20:
      case 21:
      case 22:
      case 23:
         if (this.l == null) {
            return false;
         }

         return this.l.f(modifyFlag);
      case 24:
         return (this.i & 4294967295L & 1L) != 0L;
      case 25:
         return (this.i & 4294967295L & 16384L) != 0L;
      case 26:
         return (this.i & 4294967295L & 8388608L) != 0L;
      case 27:
         return (this.i & 4294967295L & 32768L) != 0L;
      case 28:
         return (this.i & 4294967295L & 1048576L) != 0L;
      case 29:
         return (this.i & 4294967295L & 262144L) != 0L;
      case 30:
         return (this.i & 4294967295L & 2097152L) != 0L;
      case 31:
         return (this.i & 4294967295L & 4194304L) != 0L;
      case 32:
         return (this.i & 4294967295L & 536576L) != 0L;
      case 33:
         return (this.i & 4294967295L & 524288L) != 0L;
      case 34:
         return (this.i & 4294967295L & 8192L) != 0L;
      case 35:
         return (this.i & 4294967295L & 4096L) != 0L;
      case 36:
         return (this.i & 4294967295L & 131072L) != 0L;
      case 37:
         return (this.i & 4294967295L & 65536L) != 0L;
      case 38:
         return (this.i & 4294967295L & 16039936L) != 0L;
      default:
         return false;
      }
   }

   void b(int var1) {
      switch(var1) {
      case 0:
         this.i = 2147483647L;
         this.getFont().g(11);
         break;
      case 1:
         this.i |= 2130706432L;
         break;
      case 2:
         this.i |= 16777216L;
         break;
      case 3:
         this.i |= 33554432L;
         break;
      case 4:
         this.i |= 67108864L;
         break;
      case 5:
         this.i |= 134217728L;
         break;
      case 6:
         this.i |= 268435456L;
         break;
      case 7:
         this.i |= 2147483648L;
         break;
      case 8:
         this.i |= 1610612736L;
         break;
      case 9:
         this.i |= 1073741824L;
         break;
      case 10:
         this.i |= 536870912L;
         break;
      case 11:
      case 12:
      case 13:
      case 14:
      case 15:
      case 16:
      case 17:
      case 18:
      case 19:
      case 20:
      case 23:
         this.getFont().g(var1);
      case 21:
      case 22:
      default:
         break;
      case 24:
         this.i |= 1L;
         break;
      case 25:
         this.i |= 16384L;
         break;
      case 26:
         this.i |= 8388608L;
         break;
      case 27:
         this.i |= 32768L;
         break;
      case 28:
         this.i |= 1048576L;
         break;
      case 29:
         this.i |= 262144L;
         break;
      case 30:
         this.i |= 2097152L;
         break;
      case 31:
         this.i |= 4194304L;
         break;
      case 32:
         this.i |= 536576L;
         break;
      case 33:
         this.i |= 524288L;
         break;
      case 34:
         this.i |= 8192L;
         break;
      case 35:
         this.i |= 4096L;
         break;
      case 36:
         this.i |= 131072L;
         break;
      case 37:
         this.i |= 65536L;
      }

   }

   public boolean equals(Object obj) {
      return obj != null && this.getClass() == obj.getClass() ? this.c((Style)obj) : false;
   }

   public int hashCode() {
      StringBuilder var1 = new StringBuilder();
      var1.append(com.aspose.cells.b.a.zr.a(this.a));
      if (this.d() != null) {
         this.a(var1);
      }

      var1.append(Byte.toString(this.j));
      if (this.l != null) {
         this.l.a(var1);
      }

      var1.append(com.aspose.cells.b.a.zr.a(this.b));
      var1.append(Byte.toString(this.o));
      var1.append(Byte.toString(this.j));
      var1.append(com.aspose.cells.b.a.zo.a(this.k));
      var1.append(zsl.g(this.e));
      var1.append(com.aspose.cells.b.a.zo.a(this.n));
      var1.append(com.aspose.cells.b.a.zo.a(this.g));
      var1.append(Short.toString(this.q));
      return com.aspose.cells.b.a.zr.a(var1).hashCode();
   }

   private void a(StringBuilder var1) {
      Border var2 = this.getBorders().getByBorderType(8);
      this.a(var2, var1);
      var2 = this.getBorders().getByBorderType(16);
      this.a(var2, var1);
      var2 = this.getBorders().getByBorderType(32);
      this.a(var2, var1);
      var2 = this.getBorders().getByBorderType(1);
      this.a(var2, var1);
      var2 = this.getBorders().getByBorderType(2);
      this.a(var2, var1);
      var2 = this.getBorders().getByBorderType(4);
      this.a(var2, var1);
   }

   private void a(Border var1, StringBuilder var2) {
      var2.append(zsl.e(var1.a()));
      var2.append(com.aspose.cells.b.a.zr.a(var1.getColor()));
      var2.append(zsl.f(var1.getLineStyle()));
   }

   public int getIndentLevel() {
      return this.j & 255 & 255;
   }

   public void setIndentLevel(int value) {
      if (value >= 0 && value <= 250) {
         if (this.getHorizontalAlignment() != 8 && this.getHorizontalAlignment() != 7 && this.getHorizontalAlignment() != 3) {
            this.setHorizontalAlignment(7);
         }

         this.j = (byte)value;
         if (!this.l()) {
            this.e(true);
         }

         this.i |= 32768L;
      } else {
         throw new IllegalArgumentException("Indent level must be between 0 and 250.");
      }
   }

   void c(int var1) {
      this.j = (byte)var1;
      if (!this.l()) {
         this.e(true);
      }

      this.i |= 32768L;
   }

   Font q() {
      return this.l;
   }

   public Font getFont() {
      if (this.l == null) {
         if (this.m == null) {
            this.l = new Font(this.m, this, false);
            return this.l;
         }

         this.l = new Font(this.m, this, false);
         if (this.m.B().getCount() > 15) {
            this.l.c(this.m.G());
            this.l.l();
         }
      }

      return this.l;
   }

   public int getRotationAngle() {
      return this.n;
   }

   public void setRotationAngle(int value) {
      if (value >= -90 && value <= 90 || value == 255) {
         this.n = value;
         if (!this.l()) {
            this.e(true);
         }

         this.i |= 1048576L;
      }

   }

   /** @deprecated */
   public int getRotation() {
      return this.n;
   }

   /** @deprecated */
   public void setRotation(int value) {
      this.setRotationAngle(value);
   }

   public int getVerticalAlignment() {
      switch((this.o & 255 & 56) >> 3) {
      case 0:
         return 9;
      case 1:
         return 1;
      case 2:
         return 0;
      case 3:
         return 6;
      case 4:
         return 3;
      default:
         return 1;
      }
   }

   public void setVerticalAlignment(int value) {
      byte var2 = 1;
      switch(value) {
      case 0:
         var2 = 2;
         break;
      case 1:
         var2 = 1;
      case 2:
      case 4:
      case 5:
      default:
         break;
      case 3:
         var2 = 4;
         break;
      case 6:
         var2 = 3;
         break;
      case 7:
      case 8:
         return;
      case 9:
         var2 = 0;
      }

      this.o = (byte)(this.o & 199);
      this.o |= (byte)((var2 & 255) << 3);
      if (!this.l()) {
         this.e(true);
      }

      this.i |= 8388608L;
   }

   public int getHorizontalAlignment() {
      switch(this.o & 255 & 7) {
      case 0:
         return 5;
      case 1:
         return 7;
      case 2:
         return 1;
      case 3:
         return 8;
      case 4:
         return 4;
      case 5:
         return 6;
      case 6:
         return 2;
      case 7:
         return 3;
      default:
         return 5;
      }
   }

   public void setHorizontalAlignment(int value) {
      byte var2 = 0;
      switch(value) {
      case 0:
      case 9:
         return;
      case 1:
         this.j = 0;
         var2 = 2;
         break;
      case 2:
         this.j = 0;
         var2 = 6;
         break;
      case 3:
         var2 = 7;
         break;
      case 4:
         this.j = 0;
         var2 = 4;
         break;
      case 5:
         this.j = 0;
         break;
      case 6:
         this.j = 0;
         var2 = 5;
         break;
      case 7:
         var2 = 1;
         break;
      case 8:
         var2 = 3;
      }

      this.o = (byte)(this.o & 248);
      this.o |= var2;
      if (!this.l()) {
         this.e(true);
      }

      this.i |= 16384L;
   }

   public boolean isTextWrapped() {
      return (this.q & 4) != 0;
   }

   public void setTextWrapped(boolean value) {
      if (value) {
         this.q = (short)(this.q | 4);
      } else {
         this.q = (short)(this.q & -5);
      }

      if (!this.l()) {
         this.e(true);
      }

      this.i |= 262144L;
   }

   public int getNumber() {
      return this.k >= 0 && this.k < 59 ? (byte)this.k : 0;
   }

   public void setNumber(int value) {
      if (value < 59 && value >= 0) {
         this.p = "";
         this.k = value;
      } else {
         this.k = value;
      }

      this.c(true);
      this.i |= 1L;
   }

   void a(int[] var1, String[] var2) {
      var1[0] = this.k;
      var2[0] = this.p;
   }

   void a(int var1, String var2) {
      this.k = var1;
      this.p = var2;
   }

   void a(int var1, String var2, boolean var3) {
      if (var2 != null && !"".equals(var2)) {
         if (var2.length() > 255) {
            throw new CellsException(6, "The custom number format string is too long.");
         }

         this.p = var2;
      } else {
         this.p = "";
      }

      if (var3) {
         this.q = (short)(this.q | 128);
      } else {
         this.q &= -129;
      }

      this.k = var1;
      this.c(true);
      this.i |= 1L;
   }

   int r() {
      return this.k;
   }

   void d(int var1) {
      this.k = var1;
   }

   public boolean setBorder(int borderEdge, int borderStyle, Color borderColor) {
      Border var4 = null;
      if (borderStyle == 0) {
         if (this.f != null && this.f.getByBorderType(borderEdge).getLineStyle() != 0) {
            var4 = this.getBorders().getByBorderType(borderEdge);
            var4.setLineStyle(borderStyle);
            var4.setColor(borderColor);
            return true;
         } else {
            return false;
         }
      } else {
         var4 = this.getBorders().getByBorderType(borderEdge);
         if (borderStyle == var4.getLineStyle() && var4.a.a(borderColor, Color.getBlack(), this.m.n())) {
            return false;
         } else {
            var4 = this.getBorders().getByBorderType(borderEdge);
            var4.setLineStyle(borderStyle);
            var4.setColor(borderColor);
            return true;
         }
      }
   }

   public boolean isLocked() {
      return (this.q & 2) != 0;
   }

   public void setLocked(boolean value) {
      if (value) {
         this.q = (short)(this.q | 2);
      } else {
         this.q = (short)(this.q & -3);
      }

      this.h(true);
      this.i |= 131072L;
   }

   private boolean b(String var1) {
      if (this.m == null) {
         return zgb.a(var1);
      } else {
         zafy var2 = this.m.n().getSettings().e().a(var1, false);
         if (var2.a() == 6) {
            zafy[] var3 = ((zyb)var2).d();
            int var4 = var3.length;

            for(int var5 = 0; var5 < var4; ++var5) {
               zafy var6 = var3[var5];
               if (var6.a() == 3) {
                  return true;
               }
            }

            return false;
         } else {
            return var2.a() == 3;
         }
      }
   }

   public void setCustom(String custom, boolean builtinPreference) {
      if (builtinPreference) {
         int var3 = this.m.n().getSettings().e().a(custom);
         if (var3 > -1) {
            this.setNumber(var3);
            return;
         }
      }

      this.setCustom(custom);
   }

   public String getCustom() {
      return this.p;
   }

   public void setCustom(String value) {
      if (value != null && !"".equals(value)) {
         if (value.length() > 255) {
            throw new CellsException(6, "The custom number format string is too long.");
         }

         this.p = value;
         if (this.b(this.p)) {
            this.q = (short)(this.q | 128);
         } else {
            this.q &= -129;
         }
      } else {
         this.p = "";
         this.q &= -129;
      }

      this.k = -1;
      this.c(true);
      this.i |= 1L;
   }

   public String getCultureCustom() {
      if (this.p != null && !"".equals(this.p)) {
         return zyc.a(this.p, this.m.n().getSettings().e(), false);
      } else {
         return this.getNumber() == 0 ? null : this.m.n().getSettings().e().d(this.getNumber());
      }
   }

   public void setCultureCustom(String value) {
      if (value == null || "".equals(value)) {
         this.setCustom("");
      }

      this.setCustom(zyc.a(value, this.m.n().getSettings().e(), true));
   }

   String s() {
      return this.p;
   }

   public boolean isFormulaHidden() {
      return (this.q & 1) != 0;
   }

   public void setFormulaHidden(boolean value) {
      if (value) {
         this.q = (short)(this.q | 1);
      } else {
         this.q = (short)(this.q & -2);
      }

      this.h(true);
      this.i |= 65536L;
   }

   public boolean getShrinkToFit() {
      return (this.q & 8) != 0;
   }

   public void setShrinkToFit(boolean value) {
      if (value) {
         this.q = (short)(this.q | 8);
      } else {
         this.q = (short)(this.q & -9);
      }

      if (!this.l()) {
         this.e(true);
      }

      this.i |= 2097152L;
   }

   public int getTextDirection() {
      switch(this.o & 255 & 192) {
      case 64:
         return 1;
      case 128:
         return 2;
      default:
         return 0;
      }
   }

   public void setTextDirection(int value) {
      this.o = (byte)(this.o & 63);
      switch(value) {
      case 1:
         this.o = (byte)(this.o | 64);
         break;
      case 2:
         this.o = (byte)(this.o | 128);
      }

      this.i |= 4194304L;
      if (!this.l()) {
         this.e(true);
      }

   }

   public boolean isJustifyDistributed() {
      return (this.q & 512) != 0;
   }

   public void setJustifyDistributed(boolean value) {
      if (value) {
         this.q = (short)(this.q | 512);
      } else {
         this.q &= -513;
      }

   }

   boolean t() {
      return (this.q & 256) != 0;
   }

   void i(boolean var1) {
      if (var1) {
         this.q = (short)(this.q | 256);
      } else {
         this.q &= -257;
      }

   }

   boolean u() {
      return (this.q & 64) != 0;
   }

   void j(boolean var1) {
      if (var1) {
         this.q = (short)(this.q | 64);
      } else {
         this.q = (short)(this.q & -65);
      }

   }

   public boolean isGradient() {
      return (this.c & 255 & 128) != 0;
   }

   public void setGradient(boolean value) {
      if (value) {
         this.c = (byte)(this.c | 128);
      } else {
         this.c = (byte)(this.c & 127);
      }

   }

   int v() {
      switch(this.c & 255 & 15) {
      case 1:
         return 4;
      case 2:
         return 5;
      case 3:
         return 1;
      case 4:
         return 0;
      case 5:
         return 2;
      case 6:
         return 3;
      default:
         return 6;
      }
   }

   void e(int var1) {
      this.c = (byte)(this.c & 240);
      byte var2 = 0;
      switch(var1) {
      case 0:
         var2 = 4;
         break;
      case 1:
         var2 = 3;
         break;
      case 2:
         var2 = 5;
         break;
      case 3:
         var2 = 6;
         break;
      case 4:
         var2 = 1;
         break;
      case 5:
         var2 = 2;
      }

      this.c |= var2;
   }

   int w() {
      return (this.c & 255 & 112) >> 4;
   }

   void f(int var1) {
      if (var1 >= 0 && var1 <= 4) {
         this.c = (byte)(this.c & 143);
         this.c |= (byte)(var1 << 4);
      } else {
         throw new CellsException(6, "Invalid style gradient Variant");
      }
   }

   public void setTwoColorGradient(Color color1, Color color2, int gradientStyleType, int variant) {
      this.b.a(2, color1.toArgb());
      this.a.a(2, color2.toArgb());
      this.e(gradientStyleType);
      this.f(variant);
      this.setGradient(true);
      this.setPattern(1);
   }

   void a(zakp var1, zakp var2, int var3, int var4) {
      this.b = var1;
      this.a = var2;
      this.e(var3);
      this.f(var4);
      this.setGradient(true);
      this.setPattern(1);
   }

   public Object[] getTwoColorGradient() {
      if (this.isGradient()) {
         Object[] var1 = new Object[]{this.getForegroundColor(), this.getBackgroundColor(), this.v(), this.w()};
         return var1;
      } else {
         return null;
      }
   }

   public boolean isPercent() {
      String var1 = this.p;
      if (var1 != null && !var1.equals("")) {
         return var1.indexOf("%") > -1;
      } else {
         switch(this.k) {
         case 9:
         case 10:
            return true;
         default:
            return false;
         }
      }
   }

   void k(boolean var1) {
      if (var1) {
         this.q = (short)(this.q | 128);
      }

   }

   public boolean isDateTime() {
      String var1 = this.p;
      if (!"".equals(var1)) {
         return (this.q & 128) != 0;
      } else {
         int var2 = this.k;
         switch(this.k) {
         case 14:
         case 15:
         case 16:
         case 17:
         case 18:
         case 19:
         case 20:
         case 21:
         case 22:
         case 27:
         case 28:
         case 29:
         case 30:
         case 31:
         case 32:
         case 33:
         case 34:
         case 35:
         case 36:
         case 45:
         case 46:
         case 47:
         case 50:
         case 51:
         case 52:
         case 53:
         case 54:
         case 55:
         case 56:
         case 57:
         case 58:
            return true;
         case 23:
         case 24:
         case 25:
         case 26:
         case 37:
         case 38:
         case 39:
         case 40:
         case 41:
         case 42:
         case 43:
         case 44:
         case 48:
         case 49:
         default:
            return false;
         }
      }
   }

   void b(int var1, String var2) {
      switch(var1) {
      case 0:
         if (var2 != null) {
            this.getBorders().getByBorderType(8).setLineStyle(zase.j(var2));
         }
         break;
      case 1:
         if (var2 != null) {
            this.getBorders().getByBorderType(16).setLineStyle(zase.j(var2));
         }
         break;
      case 2:
         if (var2 != null) {
            this.getBorders().getByBorderType(32).setLineStyle(zase.j(var2));
         }
         break;
      case 3:
         if (var2 != null) {
            this.getBorders().getByBorderType(1).setLineStyle(zase.j(var2));
         }
         break;
      case 4:
         if (var2 != null) {
            this.getBorders().getByBorderType(2).setLineStyle(zase.j(var2));
         }
         break;
      case 5:
         if (var2 != null) {
            this.getBorders().getByBorderType(4).setLineStyle(zase.j(var2));
         }
         break;
      case 6:
         if (var2 != null) {
            this.getBorders().setDiagonalStyle(zase.j(var2));
         }
         break;
      case 7:
         if (var2 != null) {
            this.getBorders().a(new Border(this.getBorders(), 128));
            this.getBorders().b().setLineStyle(zase.j(var2));
         }
         break;
      case 8:
         if (var2 != null) {
            this.getBorders().b(new Border(this.getBorders(), 64));
            this.getBorders().c().setLineStyle(zase.j(var2));
         }
      }

   }

   void a(int var1, String var2, int var3, int var4, double var5) {
      switch(var1) {
      case 0:
         if (var2 != null) {
            this.getBorders().getByBorderType(8).setLineStyle(zase.j(var2));
         }

         this.getBorders().getByBorderType(8).a.a(var3, var4);
         this.getBorders().getByBorderType(8).a.a(var5);
         this.b(5);
         break;
      case 1:
         if (var2 != null) {
            this.getBorders().getByBorderType(16).setLineStyle(zase.j(var2));
         }

         this.getBorders().getByBorderType(16).a.a(var3, var4);
         this.getBorders().getByBorderType(16).a.a(var5);
         this.b(9);
         break;
      case 2:
         if (var2 != null) {
            this.getBorders().getByBorderType(32).setLineStyle(zase.j(var2));
         }

         this.getBorders().getByBorderType(32).a.a(var3, var4);
         this.getBorders().getByBorderType(32).a.a(var5);
         this.b(10);
         break;
      case 3:
         if (var2 != null) {
            this.getBorders().getByBorderType(1).setLineStyle(zase.j(var2));
         }

         this.getBorders().getByBorderType(1).a.a(var3, var4);
         this.getBorders().getByBorderType(1).a.a(var5);
         this.b(2);
         break;
      case 4:
         if (var2 != null) {
            this.getBorders().getByBorderType(2).setLineStyle(zase.j(var2));
         }

         this.getBorders().getByBorderType(2).a.a(var3, var4);
         this.getBorders().getByBorderType(2).a.a(var5);
         this.b(3);
         break;
      case 5:
         if (var2 != null) {
            this.getBorders().getByBorderType(4).setLineStyle(zase.j(var2));
         }

         this.getBorders().getByBorderType(4).a.a(var3, var4);
         this.getBorders().getByBorderType(4).a.a(var5);
         this.b(4);
         break;
      case 6:
         if (var2 != null) {
            this.getBorders().setDiagonalStyle(zase.j(var2));
         }

         zakp var7 = new zakp(false);
         var7.a(var3, var4);
         var7.a(var5);
         this.getBorders().getByBorderType(16).a = var7;
         this.getBorders().getByBorderType(32).a = var7;
         this.b(8);
         break;
      case 7:
         this.getBorders().a(new Border(this.getBorders(), 128));
         if (var2 != null) {
            this.getBorders().b().setLineStyle(zase.j(var2));
         }

         this.getBorders().b().a.a(var3, var4);
         this.getBorders().b().a.a(var5);
         this.b(6);
         break;
      case 8:
         this.getBorders().b(new Border(this.getBorders(), 64));
         if (var2 != null) {
            this.getBorders().c().setLineStyle(zase.j(var2));
         }

         this.getBorders().c().a.a(var3, var4);
         this.getBorders().c().a.a(var5);
         this.b(7);
      }

   }

   void a(int var1, int var2, int var3, double var4) {
      zakp var6 = new zakp(false);
      var6.a(var2, var3);
      var6.a(var4);
      switch(var1) {
      case 0:
         this.getFont().b = var6;
         this.b(16);
         break;
      case 1:
         this.b = var6;
         this.b(34);
         break;
      case 2:
         this.a = var6;
         this.b(35);
      }

   }
}
